cmake_minimum_required(VERSION 3.0.0)
project(opengl-mingw VERSION 0.1.0)

include(CTest)
enable_testing()
# glfw 目录
set(GLFW_DIR third\\glfw-3.3.3)
# glad目录
set(GLAD_DIR third\\glad)
# cglm 数学库目录
set(CGLM_DIR third\\cglm)
# glm 数学库目录
set(GLM_DIR third\\glm)

# assimp 模型加载库目录
set (ASSIMP_DIR third\\assimp)

include_directories(include)

include_directories(${GLFW_DIR}\\include)
include_directories(${GLAD_DIR}\\include)
include_directories(${CGLM_DIR})
include_directories(${GLM_DIR})
include_directories(${ASSIMP_DIR}\\include)


link_directories(${GLFW_DIR}\\lib)
link_directories(${ASSIMP_DIR}\\lib)
# 添加子目录
ADD_SUBDIRECTORY(src)


set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
